let dbFieldType = [
    {label: 'char', value: 'CHAR'},
    {label: 'varchar', value: 'VARCHAR'},
    {label: 'int', value: 'INT'},
    {label: 'bigint', value: 'BIGINT'},
    {label: 'decimal', value: 'DECIMAL'},
    {label: 'date', value: 'DATE'},
    {label: 'time', value: 'TIME'},
    {label: 'datetime', value: 'DATETIME'},
    {label: 'timestamp', value: 'TIMESTAMP'},
    {label: 'float', value: 'FLOAT'},
    {label: 'double', value: 'DOUBLE'},
    {label: 'enum', value: 'ENUM'},
    {label: 'text', value: 'TEXT'},
    {label: 'mediumtext', value: 'MEDIUMTEXT'},
];
let DateFieldType = [

]
let MethodData = [
    {label: 'GET', value: 'get'},
    {label: 'POST', value: 'post'},
]
let DrawerPlacement = [
    {label: '左', value: 'right'},
    {label: '上', value: 'top'},
];
let FormLayout = [
    // {label: 'inline', value: 'inline'},
    {label: 'vertical', value: 'vertical'},
    {label: 'horizontal', value: 'horizontal'},
];
let BtnType = [
    {label: 'default', value: 'default'},
    {label: 'primary', value: 'primary'},
    {label: 'dashed', value: 'dashed'},
    {label: 'danger', value: 'danger'},
    {label: 'link', value: 'link'},
]
let BtnShape = [
    {label: 'default', value: null},
    {label: 'circle', value: 'circle'},
    {label: 'round', value: 'round'},
]
let BooleanData = [
    {label: '是', value: true},
    {label: '否', value: false}
];
let CheckboxData = [
    {label: '单选', value: 'checked'},
    {label: '多选', value: 'group'}
]
let FunViewData = [
    {label: '搜索栏', value: 'search'},
    {label: '表格栏', value: 'table'},
    {label: '都显示', value: 'all'}
]
let TableSizeData = [
    {label: '默认', value: 'default'},
    {label: '中', value: 'middle'},
    {label: '小', value: 'small'},
]
let SelectionRowData = [
    {label: '单选', value: 'radio'},
    {label: '多选', value: 'checkbox'},
]
let FormOther = [
    {label: '必填', value: 'required'},
    {label: '清空', value: 'clear'},
    {label: '禁用', value: 'disabled'},
];
let TableAttrs = [
    {label: 'unique', value: 'unique'},
    {label: 'not null', value: 'notNull'},
]
let ForeignType = [
    {label: '一对一', value: 'one'},
    {label: '一对多', value: 'many'},
]
let SearchActionOptions = [
    {label: '清空', value: 'clear'},
    {label: '禁用', value: 'disabled'},
]
let DateData= [
    {label: '日期', value: 'date'},
    {label: '范围', value: 'range'},
    {label: '时间', value: 'time'},
    {label: '月', value: 'month'},
    {label: '周', value: 'week'},
];
let DateOptions = [
    {label: '今天', value: 'showToday'},
    {label: '时间', value: 'showTime'},
];
let SelectMode = [
    {label: '默认', value: null},
    {label: '多选', value: 'multiple'},
    {label: '标签', value: 'tags'}
];
let Validate = [
    {label: '手机', value: 'phone'},
    {label: '邮箱', value: 'email'},
    // {label: '日期', value: 'date'},
    // {label: '范围', value: 'range'},
    {label: 'Url', value: 'url'},
    {label: 'Ip', value: 'ip'},
    // {label: '长度', value: 'len'},
    {label: '身份证', value: 'idCard'},
    {label: '银行卡', value: 'bank'},
    {label: '正则', value: 'regexp'},
    {label: '字母', value: 'word'},
    {label: '汉字', value: 'chinese'},
    {label: '字符', value: 'char'},
];
let dbFieldIndex = [
    {label: '唯一', value: 'unique'},
    {label: '索引', value: 'index'},
];

let fieldView = [
    {label: '编辑', value: 'form'},
    {label: '表格', value: 'table'},
    {label: '搜索', value: 'search'},
];
let excelData = [
    {label: '导入', value: 'import'},
    {label: '导出', value: 'export'},
]
// 数据库主键类型
let primaryType = [
    {label: 'int', value: 'int'},
    {label: 'bigint', value: 'bigint'},
    {label: 'uuid', value: 'uuid'},
];
let tableFixedData = [
    {label: '否', value: false},
    {label: '左', value: 'left'},
    {label: '右', value: 'right'}
]
let alignData = [
    {label: '左', value: 'left'},
    {label: '中', value: 'center'},
    {label: '右', value: 'right'}
]
let sortData = [
    // {label: '否', value: false},
    {label: '升序', value: 'ascend'},
    {label: '降序', value: 'descend'}
]
let FuncMetas = [
    {label: '新增', value: 'add'},
    {label: '删除', value: 'del'},
    {label: '取消', value: 'cancel'},
    {label: '重置', value: 'reset'},
    {label: '提交', value: 'submit'},
    {label: '修改', value: 'edit'},
    {label: '查询', value: 'query'},
    {label: '导入', value: 'import'},
    {label: '导出', value: 'export'},
]

let TableFuncMetas = [
    {label: '删除', value: 'del'},
    {label: '修改', value: 'edit'},
    {label: '导出', value: 'export'}
]
let EditFuncMetas = [
    {label: '提交', value: 'submit'},
    {label: '取消', value: 'cancel'},
    {label: '重置', value: 'reset'}
]
let SearchFuncMetas = [
    {label: '新增', value: 'add'},
    {label: '查询', value: 'query'},
    {label: '重置', value: 'reset'},
    {label: '导入', value: 'import'},
    {label: '导出', value: 'export'},
]
let MysqlDataType = [
    {value: 'int'},
    {value: 'bigint'},
    {value: 'datetime'},
    {value: 'char()'},
    {value: 'varchar()'},
    {value: 'tinyint'},
    {value: 'decimal(10,2)'},
    {value: 'text'},
    {value: 'json'},
    {value: 'float'},
    {value: 'double'},
    {value: 'timestamp'},
    {value: 'date'},
    {value: 'time'},
    {value: 'year'},
    {value: 'smallint'},
    {value: 'mediumint'},
    {value: 'tinyblob'},
    {value: 'tinytext'},
    {value: 'blob'},
    {value: 'longblob'},
    {value: 'longtext'},
]
let FuncMetasMap = {}
FuncMetas.forEach(item => FuncMetasMap[item.value] = item.label);

// 菜单例子
let demoMenus = [
    {label: '系统管理', value: '1', children: [
            {label: '角色管理', value: '11'},
            {label: '字典配置', value: '12'}
        ]}
]
export {dbFieldType, dbFieldIndex, fieldView, primaryType, demoMenus, DateOptions
    , DrawerPlacement, FormLayout, BooleanData, FormOther, Validate, DateData, sortData
    , SelectMode, TableSizeData, BtnType, BtnShape, MethodData, tableFixedData, alignData
    , SelectionRowData, FunViewData, SearchActionOptions, FuncMetas, FuncMetasMap, TableFuncMetas
    , SearchFuncMetas, ForeignType, MysqlDataType, TableAttrs, CheckboxData, EditFuncMetas, excelData}
